package com.glacier.common.core.constant;

/**
 * date 2022-11-06 21:26
 * http 状态 枚举
 *
 * @author glacier
 * @version 1.0
 */
public enum HttpStatusEnum {

    /**
     * 系统错误
     */
    SYSTEM_ERROR("50000", "系统错误"),
    /**
     * 成功
     */
    SUCCESS("20000", "成功");
    /**
     * 编码
     */
    private final String code;
    /**
     * 名称
     */
    private final String name;

    HttpStatusEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "HttpStatusEnum{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
